//构造函数
function People(name,height,weight){
    //对象属性
    this.name = name;
    this.height = height;
    this.weight = weight;
}
//对象方法
People.prototype.intro = function(){
  console.log("I am "+this.name);
};

var xiaoming = new People('小明',172,56);

xiaoming.intro();
